﻿using System.Runtime.Serialization;

namespace VNet.VisiSuite.Service.Contact.Message.Base
{
    [DataContract(Namespace = VisiSuiteNamespace.Uri + "dto/ServiceError")]
    public class ServiceError
    {
        public ServiceError() { }

        public ServiceError(string errorCode, string description)
        {
            ErrorCode = errorCode;
            Description = description;
        }

        [DataMember(IsRequired = true)]
        public string ErrorCode { get; set; }

        [DataMember(IsRequired = true)]
        public string Description { get; set; }
    }
}